<?php

function category_helper_get_url($category_data = array(), $page = 1) {
	$page = intval($page);
	//文件保存路径
	$html_file_dir = $category_data['category_path'] . DIRECTORY_SEPARATOR;
	$html_file_url = "";
	if ($page == 1) {
		$html_file_url = $html_file_dir . 'index.html';
	} else {
		$html_file_url = $html_file_dir . 'index_' . $page . '.html';
	}

	return $html_file_url;
}
function category_helper_get_category($category_id = 0) {
	require_once APP_PATH . DIRECTORY_SEPARATOR . 'category/model.php';
	return category_model_get_by_id($category_id);
}
